package Day10;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/16 14:38
 */
public class Demo18 {
    public static void main(String[] args) {
        int arr[][] ={{4,6},{1,4,5,7},{-2}};

        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                sum += arr[i][j];
            }
        }
        System.out.println("和为："+sum);

    }
}
